import {
    legacy_createStore as createStore,//创建仓库
    combineReducers,//合并仓库,
    applyMiddleware,//处理中间件
} from "redux"

//处理异步
import thunk from "redux-thunk"
//打印日志
import logger from "redux-logger"

import reducer from "./module/reducer"

import reducer1 from "./module/reducer1"

//使用combineReducers 进行仓库合并 
const AllReducer = combineReducers({
    reducer,
    reducer1
})

const store = createStore(AllReducer,applyMiddleware(thunk,logger))

export default store